﻿<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/Share/MainMenu2.Master" AutoEventWireup="true" CodeBehind="fMapping.aspx.cs" Inherits="MixScriptWeb.Jideco.MM.fMapping" %>

<%@ Register Src="~/control/MixScriptTB.ascx" TagName="baseTextBox" TagPrefix="mix" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            jQuery('.datepicker').datepicker({ dateFormat: 'dd-mm-yy' });
        }
    </script>
    <div style="padding-left: 10px;">
        <h2 class="jquery_tab">
            GRN</h2>
        <br />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <Triggers>
                <asp:PostBackTrigger ControlID="btnSave" />
            </Triggers>
            <ContentTemplate>
                <asp:MultiView ID="MultiView1" runat="server">
                    <asp:View ID="vwSelect" runat="server">
                        <br />
                        <br />
                        <table class="table-ui" style="width: 100%;">
                            <tr>
                                <td style="width: 268px;">
                                    GRN Type
                                </td>
                                <td style="width: 5px;">
                                    :
                                </td>
                                <td style="width: 1273px;">
                                    <asp:DropDownList ID="ddlGrnTyp" runat="server">
                                        <%--<asp:ListItem Value="SF">WIP</asp:ListItem>--%>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                        </table>
                        <br />
                        <table class="table-ui" style="width: 600px">
                            <tr>
                                <td style="height: 26px;">
                                    &nbsp;
                                    <asp:Button ID="btnNext" runat="server" CssClass="button" Text="Next" Width="101px"
                                        OnClick="btnNext_Click" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px; width: 4px;">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </asp:View>
                    <asp:View ID="vwGR" runat="server">
                        <br />
                        <br />
                        <table class="table-ui" style="width: 100%;">
                            <tr>
                                <td style="width: 268px;">
                                    GRN No
                                </td>
                                <td style="width: 5px;">
                                    :
                                </td>
                                <td style="width: 1273px;">
                                    <mix:baseTextBox ID="txtGRN" runat="server" AllowNull="True" isvalid="True" ReadOnly="True"
                                        showFind="False" tooltip="This Field Cannot be empty" tWidht="200" />
                                </td>
                            </tr>
                            <%--<tr>
                                <td style="width: 268px;">
                                    Modul
                                </td>
                                <td style="width: 5px;">
                                    :
                                </td>
                                <td style="width: 1273px;">
                                    <asp:DropDownList ID="DropDownList1" runat="server">
                                        <asp:ListItem Value="">--Sekect Modul--</asp:ListItem>
                                        <asp:ListItem Value="001">ROD UNIT</asp:ListItem>
                                        <asp:ListItem Value="002">FRAME ASSY</asp:ListItem>
                                        <asp:ListItem Value="003">PIVOT 150</asp:ListItem>
                                        <asp:ListItem Value="004">BRACKET ASSY</asp:ListItem>
                                        <asp:ListItem Value="005">MOTOR STARTER</asp:ListItem>
                                        <asp:ListItem Value="006">STARTER RELAY</asp:ListItem>
                                        <asp:ListItem Value="007">WM LINK</asp:ListItem>
                                        <asp:ListItem Value="008">WM PM</asp:ListItem>
                                        <asp:ListItem Value="009">WM ARM PM</asp:ListItem>
                                        <asp:ListItem Value="010">DRIVE ASSY</asp:ListItem>
                                        <asp:ListItem Value="011">MOTOR STATOR</asp:ListItem>
                                        <asp:ListItem Value="012">WASHER SYSTEM</asp:ListItem>
                                        <asp:ListItem Value="013">WM ASSY YD2</asp:ListItem>
                                        <asp:ListItem Value="014">WM YOKE YD2</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>--%>
                            <tr>
                                <td style="width: 268px;">
                                    <asp:Label ID="lblSupCust" runat="server" Text="Label"></asp:Label>
                                </td>
                                <td style="width: 5px;">
                                    :
                                </td>
                                <td style="width: 1273px;">
                                    <mix:baseTextBox ID="txtSupp" runat="server" AllowNull="True" isvalid="True" ReadOnly="True"
                                        showFind="True" tooltip="This Field Cannot be empty" tWidht="200" />
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 268px;">
                                    Requesting Dept
                                </td>
                                <td style="width: 5px;">
                                    :
                                </td>
                                <td style="width: 1273px;">
                                    <mix:baseTextBox ID="txtReqDept" runat="server" AllowNull="True" isvalid="True" ReadOnly="True"
                                        showFind="False" tooltip="This Field Cannot be empty" tWidht="200" 
                                        UpperCase="True" Visible="False" />
                                    <asp:DropDownList ID="ddlRequestDept" runat="server">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 268px;">
                                    <asp:Label ID="lblDoNo" runat="server" Text="Dlv Order No" />
                                </td>
                                <td style="width: 5px;">
                                    <asp:Label ID="lblDoNosm" runat="server" Text=":" />
                                </td>
                                <td style="width: 1273px;">
                                    <mix:baseTextBox ID="txtDONo" runat="server" AllowNull="True" isvalid="True" ReadOnly="True"
                                        showFind="False" tooltip="This Field Cannot be empty" tWidht="200" UpperCase="True" />
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 268px;">
                                    <asp:Label ID="lblPO" runat="server" Text="PO NO" />
                                </td>
                                <td style="width: 5px;">
                                    <asp:Label ID="lblPOsm" runat="server" Text=":" />
                                </td>
                                <td style="width: 1273px;">
                                    <mix:baseTextBox ID="txtPONo" runat="server" AllowNull="True" isvalid="True" ReadOnly="True"
                                        showFind="False" tooltip="This Field Cannot be empty" tWidht="200" UpperCase="True" />
                                </td>
                            </tr>
                        </table>
                        <br />
                        <asp:Panel ID="Panel1" runat="server" ScrollBars="Auto" Width="100%">
                            <asp:GridView ID="gvGRN" runat="server" CssClass="gridview" OnRowDataBound="gvdetail_RowDataBound"
                                AutoGenerateColumns="False" Width="1250px">
                                <AlternatingRowStyle CssClass="alt" />
                                <Columns>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                        </HeaderTemplate>
                                        <EditItemTemplate>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Image ID="imgSearch" runat="server" CssClass="search" Height="18" ImageUrl="~/Styles/icons/search-24.png"
                                                Width="18" />
                                            <asp:ImageButton ID="imgDelete" runat="server" Height="15" ImageUrl="~/Styles/images/24_x_false.png"
                                                OnClick="imgDelete_Click" Width="15" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="38px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="In-Out No">
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtIORFNO" runat="server" CssClass="input-small" Text='<%# Eval("iorfno") %>'></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Part. No">
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtPartNo" runat="server" CssClass="input-small" Text='<%# Eval("itno") %>'></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Parts Name">
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtPartName" runat="server" CssClass="input-medium" Text='<%# Eval("itnm") %>'></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Qty">
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtQty" runat="server" CssClass="input-small righttoleft" Text='<%# Eval("ioqt") %>'></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Unit">
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtUom" runat="server" CssClass="input-small" Text='<%# Eval("unmsns") %>'></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Description">
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtDesc" runat="server" CssClass="input-medium" Text='<%# Eval("grdesc") %>'></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                                <FooterStyle CssClass="ft" />
                                <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
                            </asp:GridView>
                        </asp:Panel>
                        <br />
                        <table class="table-ui" style="width: 600px">
                            <tr>
                                <td style="height: 26px;">
                                    &nbsp;
                                    <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Save" Width="101px"
                                        OnClick="btnSave_Click" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    <asp:Button ID="btnCreateDN" runat="server" CssClass="button" Text="Create DN" Visible="False"
                                        Width="101px" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    <asp:Button ID="btnCLear" runat="server" CssClass="button" Text="Clear" Visible="False"
                                        Width="101px" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    <asp:Button ID="btnAddRow" runat="server" CssClass="button" Text="Add Row" Width="101px"
                                        OnClick="btnAddRow_Click" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px; width: 4px;">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                        <br />
                    </asp:View>
                </asp:MultiView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
